window.onload=function () {
     var login = document.getElementById("login");
     login.onclick=function (ev) {
         var LoginForm = document.getElementById("LoginForm");
         var account = LoginForm.account.value;
         var pwd = LoginForm.pwd.value;
         if (account==="") {
             alert("账号不能为空");
             LoginForm.account.focus();
             return;
         }
         if (pwd===""){
             alert("密码不能为空或者包含空格");
             LoginForm.pwd.focus();
         }else {
             //加密
             // LoginForm.pwd.value=hex_md5(pwd);
             LoginForm.submit();
         }
     }
};